package com.sanyou.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

@Data
@ApiModel(value = "厂家对象", description = "这是厂家对象")
public class Factory {

    @ApiModelProperty(value = "厂家ID", name = "id",example = "")
    @Id
    private String id;

    @ApiModelProperty(value = "厂家名", name = "factoryName",example = "123")
    @Column(name = "factory_name")
    private String factoryName;

    @ApiModelProperty(value = "层级", name = "layer",example = "1")
    private Byte layer;

    @ApiModelProperty(value = "上级id", name = "parentId",example = "1")
    @Column(name = "parentId")
    private String parentId;

    @ApiModelProperty(value = "删除标志", name = "deleteMark",example = "0")
    @Column(name = "delete_mark")
    private Byte deleteMark;

    @ApiModelProperty(value = "创建时间", name = "createtime",example = "",required = false)
    private Date createtime;

    @ApiModelProperty(value = "修改时间", name = "updatetime",example = "",required = false)
    private Date updatetime;

    @ApiModelProperty(value = "删除时间", name = "deletetime",example = "",required = false)
    private Date deletetime;

    @ApiModelProperty(value = "工厂/车间地址", name = "factoryAddress",example = "0")
    @Column(name = "factory_address")
    private String factoryAddress;

    @ApiModelProperty(value = "经度", name = "factoryLng",example = "0")
    @Column(name = "factory_lng")
    private Double factoryLng;

    @ApiModelProperty(value = "纬度", name = "factoryLat",example = "0")
    @Column(name = "factory_lat")
    private Double factoryLat;

    @ApiModelProperty(value = "设备健康上限", name = "equip_health_limit", example = "5")
    @Column(name = "equip_health_limit")
    private Double equipHealthLimit;

    @ApiModelProperty(value = "设备亚健康上限", name = "equip_subhealth_limit", example = "10")
    @Column(name = "equip_subhealth_limit")
    private Double equipSubHealthLimit;

    @ApiModelProperty(value = "维修阈值", name = "need_repair_limit", example = "10")
    @Column(name = "need_repair_threshold")
    private Double needRepairThreshold;

    @ApiModelProperty(value = "设备周期", name = "equip_cycle", example = "5")
    @Column(name = "equip_cycle")
    private Integer equipCycle;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return factory_name
     */
    public String getFactoryName() {
        return factoryName;
    }

    /**
     * @param factoryName
     */
    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    /**
     * @return delete_mark
     */
    public Byte getDeleteMark() {
        return deleteMark;
    }

    /**
     * @param deleteMark
     */
    public void setDeleteMark(Byte deleteMark) {
        this.deleteMark = deleteMark;
    }

    /**
     * @return createtime
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * @param createtime
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    /**
     * @return updatetime
     */
    public Date getUpdatetime() {
        return updatetime;
    }

    /**
     * @param updatetime
     */
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    /**
     * @return deletetime
     */
    public Date getDeletetime() {
        return deletetime;
    }

    /**
     * @param deletetime
     */
    public void setDeletetime(Date deletetime) {
        this.deletetime = deletetime;
    }

    public Byte getLayer() {
        return layer;
    }

    public void setLayer(Byte layer) {
        this.layer = layer;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getFactoryAddress() {
        return factoryAddress;
    }

    public void setFactoryAddress(String factoryAddress) {
        this.factoryAddress = factoryAddress;
    }

    public Double getFactoryLng() {
        return factoryLng;
    }

    public void setFactoryLng(Double factoryLng) {
        this.factoryLng = factoryLng;
    }

    public Double getFactoryLat() {
        return factoryLat;
    }

    public void setFactoryLat(Double factoryLat) {
        this.factoryLat = factoryLat;
    }
}